//
//  NextViewController.m
//  HXBaseProjectDemo
//
//  Created by mHome on 2017/1/12.
//  Copyright © 2017年 黄轩. All rights reserved.
//

#import "NextViewController.h"

@interface NextViewController ()
{

    UITableView *table;
}

@end

@implementation NextViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor grayColor];
    [self.view addSubview:self.tableview];
    self.dataSource = @[@[@"11",@"22",@"33"],@[@"44",@"55"],@[@"66"]];
    [self cellDataSource];
}
- (NSArray *)cellDataSource {
    return self.dataSource;
}

//-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
//{
//    return 5;
//}
-(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *inde = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:inde];
    if (cell == nil) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:inde];
    }
    cell.textLabel.text = @"111";
    return cell;
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
